
package de.saar.penguin.give2.server;
/**
 * This Enum represents the possible object types, NULL is a fallback and should
 * not be used.
 * 
 * @author Boris Fersing
 */
enum ObjectType {
	ALARM("alarm tile", "alarm"), BUTTON("button", "button"), STATELESS_BUTTON(
			"button", "stateless-button"), CHAIR("chair", "chair"), COUCH(
			"couch", "couch"), DOOR("doorway", "door"), FLOWER("plant", "flower"), LAMP(
			"lamp", "lamp"), PICTURE("picture", "picture"), ROOM("room", "room"), SAFE(
			"safe", "safe"), TROPHY("trophy", "trophy"), WALL("wall", "wall"), WINDOWWIDE("window","windowwide"),
			WINDOWLONG("window","windowlong"), TABLE("table","table"), DRESSER("dresser","dresser"),
			BED("bed","bed"), PEDESTAL("pedestal","pedestal"), NULL("", "");

	private final String name;
	private final String predicate;

	/**
	 * Constructor.
	 * 
	 * @param name
	 *            The name used to generate REs
	 * @param predicate
	 *            The predicate used by the system (atom list, ...)
	 */
	ObjectType(String name, String predicate) {
		this.name = name;
		this.predicate = predicate;
	}

	public String getName() {
		return this.name;
	}

	public String getPredicate() {
		return this.predicate;
	}

	/**
	 * overrides the default toString method, this makes generating REs easier
	 */
	public String toString() {
		return this.name;
	}
}
